package com.zking.ssm.NH.service.impl;

import com.zking.ssm.NH.mapper.ThotelFacilityMapper;
import com.zking.ssm.NH.model.ThotelFacility;
import com.zking.ssm.NH.service.IThotelFacilityService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IThotelFacilityServiceImpl implements IThotelFacilityService {

    @Autowired
    private ThotelFacilityMapper thotelFacilityMapper;

    @Override
    public int deleteByPrimaryKey(ThotelFacility id) {
        return thotelFacilityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ThotelFacility record) {
        return thotelFacilityMapper.insert(record);
    }

    @Override
    public int insertSelective(ThotelFacility record) {
        return thotelFacilityMapper.insertSelective(record);
    }

    @Override
    public ThotelFacility selectByPrimaryKey(Long id) {
        return thotelFacilityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ThotelFacility record) {
        return thotelFacilityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ThotelFacility record) {
        return thotelFacilityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ThotelFacility> lista(ThotelFacility record, PageBean pageBean) {
        List<ThotelFacility> bbb=thotelFacilityMapper.lista(record);
        return bbb;
    }

    @Override
    public int deletepiliang(ThotelFacility record) {
        return thotelFacilityMapper.deletepiliang(record);
    }
}
